package com.woniuxy.lrz.carlproject.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.sql.Timestamp;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 评论表
 * </p>
 *
 * @author lrz
 * @since 2022-09-28
 */
@TableName("comment")
@ApiModel(value = "Comment对象", description = "评论表")
public class Comment implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "comment_id", type = IdType.AUTO)
    private Integer commentId;

    @ApiModelProperty("评论人昵称")
    private String speakNickname;

    @ApiModelProperty("评论人头像")
    private String imagePhoto;

    @ApiModelProperty("关联订单id")
    private Integer orderId;

    @ApiModelProperty("评论内容")
    private String content;

    @ApiModelProperty("是否有照片,0-默认评论没有照片 1-有照片")
    private String isPhoto;

    @ApiModelProperty("评论照片")
    private String commentPhoto;

    @ApiModelProperty("评论分数 1-5 ")
    private Integer type;

    @ApiModelProperty("是否回复 0 未回复 1 已回复")
    private String isReplay;

    @ApiModelProperty("评论时间")
    private Timestamp commentTime;

    public Integer getCommentId() {
        return commentId;
    }

    public void setCommentId(Integer commentId) {
        this.commentId = commentId;
    }

    public String getSpeakNickname() {
        return speakNickname;
    }

    public void setSpeakNickname(String speakNickname) {
        this.speakNickname = speakNickname;
    }

    public String getImagePhoto() {
        return imagePhoto;
    }

    public void setImagePhoto(String imagePhoto) {
        this.imagePhoto = imagePhoto;
    }

    public Integer getOrderId() {
        return orderId;
    }

    public void setOrderId(Integer orderId) {
        this.orderId = orderId;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getIsPhoto() {
        return isPhoto;
    }

    public void setIsPhoto(String isPhoto) {
        this.isPhoto = isPhoto;
    }

    public String getCommentPhoto() {
        return commentPhoto;
    }

    public void setCommentPhoto(String commentPhoto) {
        this.commentPhoto = commentPhoto;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getIsReplay() {
        return isReplay;
    }

    public void setIsReplay(String isReplay) {
        this.isReplay = isReplay;
    }

    public Timestamp getCommentTime() {
        return commentTime;
    }

    public void setCommentTime(Timestamp commentTime) {
        this.commentTime = commentTime;
    }

    @Override
    public String toString() {
        return "Comment{" +
        "commentId = " + commentId +
        ", speakNickname = " + speakNickname +
        ", imagePhoto = " + imagePhoto +
        ", orderId = " + orderId +
        ", content = " + content +
        ", isPhoto = " + isPhoto +
        ", commentPhoto = " + commentPhoto +
        ", type = " + type +
        ", isReplay = " + isReplay +
        ", commentTime = " + commentTime +
        "}";
    }
}
